import random;
import os;

s = "";
for i in range(100000):
	s += random.choice('abcdef');
print(s);
n = random.randint(1, 10);
print(n);
for i in range(n):
	m = random.randint(1, 10);
	s = "";
	for j in range(m):
		s += random.choice('abc');
	print(s);
		